
import { type RouteRecordRaw } from "vue-router"



const routes :RouteRecordRaw[]=[
{
  path:'/',
  component:()=>import('@/views/Layout/index.vue'),
  redirect:'/home',
  children:[
   { path:'/home',component: ()=>import('@/views/Home/index.vue')},
   { path:'/category',component: ()=>import('@/views/Category/index.vue')},
   { path:'/car',component: ()=>import('@/views/Car/index.vue')},
   { path:'/my',component: ()=>import('@/views/My/index.vue'),meta:{keepAlive:true}},
  ]
},
{path:'/login',component: ()=>import('@/views/Login/index.vue')},
{path:'/register',component: ()=>import('@/views/Register/index.vue')},
{path:'/detail/:proid?',component: ()=>import('@/views/Detail/index.vue')},
{path:'/pay',component: ()=>import('@/views/Pay/index.vue')},
{path:'/goodslist',component: ()=>import('@/views/GoodsList/index.vue')},
{path:'/address',component: ()=>import('@/views/Address/index.vue')},
{path:'/addressitem',component: ()=>import('@/views/Address/components/AddressItem.vue')},
]



export default routes